package com.oa.hyperion.repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.oa.hyperion.entity.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {
    @Select("select * from user where id=#{id}")
    public User getUser(int id);

    @Select("select * from user")
    public List<User> getAllUser();

    @Select("select * from user where account=#{account}")
    public User getUserByAccount(String account);
}
